package cn.wolfcode.shop.msg;

import cn.wolfcode.shop.common.CodeMsg;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@NoArgsConstructor
public class SeckillServerCodeMsg extends CodeMsg {
    public SeckillServerCodeMsg(Integer code, String msg) {
        super(code, msg);
    }

    public static final SeckillServerCodeMsg GOODSSERVER_ERROR = new SeckillServerCodeMsg(500400, "商品服务繁忙");

    public static final SeckillServerCodeMsg NOTLOGIN_ERROR = new SeckillServerCodeMsg(500501, "对不起，您需要先登录！");
    public static final SeckillServerCodeMsg OPS_ERROR = new SeckillServerCodeMsg(500401, "对不起，您的操作错误！");
    public static final SeckillServerCodeMsg NOT_START_ERROR = new SeckillServerCodeMsg(500402, "对不起，活动尚未开始！");
    public static final SeckillServerCodeMsg ALREADY_OVER_ERROR = new SeckillServerCodeMsg(500403, "对不起，活动已经结束！");
    public static final SeckillServerCodeMsg ALREADY_AGEIN_ERROR = new SeckillServerCodeMsg(500404, "对不起，你已经抢过一次了！");
    public static final SeckillServerCodeMsg STOCKCOUNT_OVER_ERROR = new SeckillServerCodeMsg(500405, "你来晚了，产品已卖完！");
    public static final SeckillServerCodeMsg VERIFY_CODE_ERROR = new SeckillServerCodeMsg(500501, "验证码校验错误！");

}
